const express = require("express");
const { server } = require("./config/config");
const serverTip = require("./config/uitils/serverTip");
const InitMiddleware = require("./middleware");

// 创建服务对象
const app = express();
// 基础中间件挂载
InitMiddleware.init(app, express);
// 启动服务并进行监听
app.listen(server.port, serverTip);